A boy carrying a pellet gun that looked like a real firearm was ordered three times to show his hands before he was fatally shot.